<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!-- @authority侯仁杰 
	医生主页管理系统-->	
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <title></title>
        <link rel="shortcut icon" href="img/favicon.ico">
        <!--STYLESHEET-->
        <!--=================================================-->
        <!--Roboto Slab Font [ OPTIONAL ] -->
        <link href="http://fonts.googleapis.com/css?family=Roboto+Slab:400,300,100,700" rel="stylesheet">
        <link href="http://fonts.googleapis.com/css?family=Roboto:500,400italic,100,700italic,300,700,500italic,400" rel="stylesheet">
        <!--Bootstrap Stylesheet [ REQUIRED ]-->
        <link href="css/bootstrap.min.css" rel="stylesheet">
        <!--Jasmine Stylesheet [ REQUIRED ]-->
        <link href="css/style.css" rel="stylesheet">
        <!--Font Awesome [ OPTIONAL ]-->
        <link href="plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
        <!--Switchery [ OPTIONAL ]-->
        <link href="plugins/switchery/switchery.min.css" rel="stylesheet">
        <!--Bootstrap Select [ OPTIONAL ]-->
        <link href="plugins/bootstrap-select/bootstrap-select.min.css" rel="stylesheet">
        <!--Demo [ DEMONSTRATION ]-->
        <link href="css/demo/jasmine.css" rel="stylesheet">
        <!--SCRIPT-->
        <!--=================================================-->
<<<<<<< HEAD

=======
       
>>>>>>> branch 'master' of https://gitee.com/ChenYouming01/witmed.git
        <!--=================================================-->
        <!--Page Load Progress Bar [ OPTIONAL ]-->
        <link href="plugins/pace/pace.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="css/index.css">
        <link rel="stylesheet" href="css/matrix-style.css" />
        <script src="plugins/pace/pace.min.js"></script>
        <script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/script.js"></script>
    </head>
    <!--TIPS-->
    <!--You may remove all ID or Class names which contain "demo-", they are only used for demonstration. -->
    <body>
        <div id="container" class="effect mainnav-sm navbar-fixed mainnav-fixed">
            <!--NAVBAR-->
            <!--===================================================-->
            <header id="navbar" >
                <div id="navbar-container" class="boxed">
                    <!--Navbar Dropdown-->
                    <!--================================-->
                    <div class="navbar-content clearfix">
                        <ul class="nav navbar-top-links pull-left">
                            <!--Navigation toogle button-->
                            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
                            <li class="tgl-menu-btn">
                                <a class="mainnav-toggle" href="#"> <i class="fa fa-navicon fa-lg"></i> </a>
                            </li>
                            
                            <li class="dropdown">
                                <a href="../chat/brief.html"  class="dropdown-toggle"> <i class="fa fa-bell fa-lg"></i> <span class="badge badge-header badge-danger">5</span> </a>
                                <!--Notification dropdown menu-->
                                <!-- <div class="dropdown-menu dropdown-menu-md with-arrow">
                                    <div class="pad-all bord-btm">
                                        <div class="h4 text-muted text-thin mar-no"> Notification </div>
                                    </div>
                                    <div class="nano scrollable">
                                        <div class="nano-content">
                                            <ul class="head-list">
                                                Dropdown list
                                                <li>
                                                    <a href="#" class="media">
                                                        <div class="media-left"> <span class="icon-wrap icon-circle bg-primary"> <i class="fa fa-comment fa-lg"></i> </span> </div>
                                                        <div class="media-body">
                                                            <div class="text-nowrap">New comments waiting approval</div>
                                                            <small class="text-muted">15 minutes ago</small> 
                                                        </div>
                                                    </a>
                                                </li>
                                                Dropdown list
                                                <li>
                                                    <a href="#" class="media">
                                                        <span class="badge badge-success pull-right">90%</span>
                                                        <div class="media-left"> <span class="icon-wrap icon-circle bg-danger"> <i class="fa fa-hdd-o fa-lg"></i> </span> </div>
                                                        <div class="media-body">
                                                            <div class="text-nowrap">HDD is full</div>
                                                            <small class="text-muted">50 minutes ago</small> 
                                                        </div>
                                                    </a>
                                                </li>
                                                Dropdown list
                                                <li>
                                                    <a href="#" class="media">
                                                        <div class="media-left"> <span class="icon-wrap icon-circle bg-info"> <i class="fa fa-file-word-o fa-lg"></i> </span> </div>
                                                        <div class="media-body">
                                                            <div class="text-nowrap">Write a news article</div>
                                                            <small class="text-muted">Last Update 8 hours ago</small> 
                                                        </div>
                                                    </a>
                                                </li>
                                                Dropdown list
                                                <li>
                                                    <a href="#" class="media">
                                                        <span class="label label-danger pull-right">New</span>
                                                        <div class="media-left"> <span class="icon-wrap icon-circle bg-purple"> <i class="fa fa-comment fa-lg"></i> </span> </div>
                                                        <div class="media-body">
                                                            <div class="text-nowrap">Comment Sorting</div>
                                                            <small class="text-muted">Last Update 8 hours ago</small> 
                                                        </div>
                                                    </a>
                                                </li>
                                                Dropdown list
                                                <li>
                                                    <a href="#" class="media">
                                                        <div class="media-left"> <span class="icon-wrap icon-circle bg-success"> <i class="fa fa-user fa-lg"></i> </span> </div>
                                                        <div class="media-body">
                                                            <div class="text-nowrap">New User Registered</div>
                                                            <small class="text-muted">4 minutes ago</small> 
                                                        </div>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                    Dropdown footer
                                    <div class="pad-all bord-top">
                                        <a href="#" class="btn-link text-dark box-block"> <i class="fa fa-angle-right fa-lg pull-right"></i>Show All Notifications </a>
                                    </div>
                                </div> -->
                            </li>
                            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
                            <!--End notifications dropdown-->
                        </ul>
                        <ul class="nav navbar-top-links pull-right">
                            <!--Profile toogle button-->
                            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
                            <li class="hidden-xs" id="toggleFullscreen">
                                <a class="fa fa-expand" data-toggle="fullscreen" href="#" role="button">
                                <span class="sr-only">Toggle fullscreen</span>
                                </a>
                            </li>
                            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
                            <!--End Profile toogle button-->
                            <!--User dropdown-->
                            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
                            <li id="dropdown-user" class="dropdown">
                                <a href="#" data-toggle="dropdown" class="dropdown-toggle text-right">
                                    <span class="pull-right"> <img class="img-circle img-user media-object" src="img/av1.png" alt="Profile Picture"> </span>
                                    <div class="username hidden-xs" id="realName"></div>
                                </a>
                                <div class="dropdown-menu dropdown-menu-right with-arrow">
                                    <!-- User dropdown menu -->
                                    <ul class="head-list">
                                        <li>
                                            <a href="doctor-login.jsp" id="logout"> <i class="fa fa-sign-out fa-fw"></i> 注销 </a>
                                        </li>
                                    </ul>
                                </div>
                            </li>
                            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
                            <!--End user dropdown-->
                        </ul>
                    </div>
                    <!--================================-->
                    <!--End Navbar Dropdown-->
                </div>
            </header>
            <!--===================================================-->
            <!--END NAVBAR-->
            <div class="boxed">
                <!--CONTENT CONTAINER-->
                <!--===================================================-->
                <div id="content-container">
                    <div class="pageheader hidden-xs">
                        <h3><i class="fa fa-home"></i> 主 页 </h3>
                    </div>
                    <!--Page content-->
                    <!--===================================================-->
                    <div id="page-content">
                      <div class="row">
                        <div class="col-md-12">                    
                          <div class="panel">
                            <div class="panel-heading">
                                <div class="panel-control">
                                    <button class="btn btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></button>
                                    <button class="btn btn-default" data-click="panel-reload"><i class="fa fa-refresh"></i></button>
                                    <button class="btn btn-default" data-click="panel-collapse"><i class="fa fa-chevron-down"></i></button>
                                    <button class="btn btn-default" data-dismiss="panel"><i class="fa fa-times"></i></button>
                                </div>
                                <h3 class="panel-title">预约时间发布</h3>
                            </div>
                            <div class="panel-body">
                                <!-- Inline Form  -->
                                <!--===================================================-->
                                <form class="form-inline">
                                    <div class="form-group mar-hor">
                                    	选择坐诊时间
                                        <input type="datetime-local" style="margin:10px" id="demo-inline-inputmail" class="form-control">
                                    </div>
                                 
                                    <button class="btn btn-info" id="publish" type="button" >发  布</button>
                                </form>
                                <!--===================================================-->
                        
		         <div class="widget-box">
		          <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
		            <h5>预约时间管理</h5>
		          </div>
		          <!-- 分页显示条数选择 -->
		          <select style="width:90px" id="select-pageSize">
					<option value="0">当天</option>
					<option value="1">明天</option>
					<option value="3">未来3天</option>
				  </select>         
		          <div class="widget-content nopadding">
		            <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
		             <table class="table table-bordered data-table dataTable" id="DataTables_Table_0">
		              <thead>
		                <tr role="row">
		                	<th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 275px;">
		                		<div class="DataTables_sort_wrapper">坐诊时间
		                			<span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-n"></span>
		                		</div>
		                	</th>
		                	<th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 275px;">
		                		<div class="DataTables_sort_wrapper">预约状态
		                			<span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-n"></span>
		                		</div>
		                	</th>
		                	<th class="ui-state-default" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 275px;">
		                		<div class="DataTables_sort_wrapper">操作
		                			<span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-n"></span>
		                		</div>
		                	</th>
		                </tr>
		              </thead>            
		           	  <tbody role="alert" aria-live="polite" aria-relevant="all" id="tbody-appointmentlist">   	 
		           	            <!-- 
		           	            <tr class="gradeA odd">
				                	<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>						
									<td><a href="">编辑</a>&nbsp;<a href="#">删除</a></td>
		               			</tr>        
		               			-->   	           	          
		               </tbody>
		            </table>
		           <!--  <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix">
		               
		                <div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
		                    <span>每页2条 共11条  第1/4页</span>
			                <a tabindex="0" class="first ui-corner-tl ui-corner-bl fg-button ui-button ui-state-default ui-state-disabled" id="DataTables_Table_0_first">首页</a>
			                <a tabindex="0" class="previous fg-button ui-button ui-state-default ui-state-disabled" id="DataTables_Table_0_previous">上一页</a>
			                <span>
				                <a tabindex="0" class="fg-button ui-button ui-state-default ui-state-disabled">1</a>
				                <a tabindex="0" class="fg-button ui-button ui-state-default">2</a>
				                <a tabindex="0" class="fg-button ui-button ui-state-default">3</a>
				                <a tabindex="0" class="fg-button ui-button ui-state-default">4</a>
				                <a tabindex="0" class="fg-button ui-button ui-state-default">5</a>
			                </span>
			                <a tabindex="0" class="next fg-button ui-button ui-state-default" id="DataTables_Table_0_next">下一页</a>
			                <a tabindex="0" class="last ui-corner-tr ui-corner-br fg-button ui-button ui-state-default" id="DataTables_Table_0_last">尾页</a>
		                </div>
		                </div> -->
		               </div>
		          </div>
		        </div>
                                
                                
                                
                                
                            </div>
                         </div>
                       </div>
                     </div>
<!-- 
<div class="line"></div>                        
<div class="doctor_con">
	<div class="con">
		<div class="tab">
			<div class="tab_hd clearfix text-center">
				<div class="active float-left"><a href="#doctor_index">医生首页</a></div>
			</div>
			<div class="tab_con">
				<div id="doctor_index" class="doctor_pane active">
					<table border="0" cellspacing="0" cellpadding="0" class="doctor_table" width="1200">
						<tr>
							<td class="tb_header">时间地点</td>
							<td colspan="9"><div>福建省立医院</div></td>
						</tr>
						<tr>
							<td class="tb_header">时段</td>
							<td rowspan="4" class="arrow_left"><div><img src="img/left.png"></div></td>				
							<td rowspan="4" class="arrow_right right_active"><div><img src="img/right_active.png"></div></td>
						</tr>
						<tr>
							<td class="tb_header">上午</td>
						</tr>
						<tr>
							<td class="tb_header">下午</td>	
						</tr>
						<tr>
							<td class="tb_header">夜诊</td>
						</tr>
					</table>
				</div>
				<div id="doctor_evaluate" class="doctor_pane">
					这里是就诊评价的内容
				</div>
			</div>
		</div>
	</div>
</div>
  <div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">  -->                     
           
                    </div>
                    <!--===================================================-->
                    <!--End page content-->
                </div>
        
              
                <!--===================================================-->
                <!--END CONTENT CONTAINER-->
                <!--MAIN NAVIGATION-->
                <!--===================================================-->
                <nav id="mainnav-container">
                    <!--Brand logo & name-->
                    <!--================================-->
                    <div class="navbar-header">
                        <a href="index.html" class="navbar-brand">
                            <i class="fa fa-forumbee brand-icon"></i>
                            <div class="brand-title">
                                <span class="brand-text">医生管理</span>
                            </div>
                        </a>
                    </div>
                    <!--================================-->
                    <!--End brand logo & name-->
                    <div id="mainnav">
                        <!--Menu-->
                        <!--================================-->
                        <div id="mainnav-menu-wrap">
                            <div class="nano">
                                <div class="nano-content">
                                    <ul id="mainnav-menu" class="list-group">
                                        <!--Menu list item-->
                                        <li> <a href="doctor-home.jsp"> <i class="fa fa-home"></i> <span class="menu-title"> 您的主页 </span> </a> </li>
                                        
                                        <li>
                                            <a href="doctor-beforeArticle.jsp">
                                            <i class="fa fa-file"></i>
                                            <span class="menu-title">以往文章</span>
                                            <i class="arrow"></i>
                                            </a>
                                            
                                        </li>
                                        
                                        <li>
                                            <a href="doctor-article.jsp">
                                            <i class="fa fa-edit"></i>
                                            <span class="menu-title">发表文章</span>
                                            <i class="arrow"></i>
                                            </a>
                                            <!--Submenu-->
                                        </li>
                                     
                    </div>
                </nav>
                <!--===================================================-->
                <!--END MAIN NAVIGATION-->
            </div>
            <!-- FOOTER -->
            <!--===================================================-->
            <footer id="footer">
                <!-- Visible when footer positions are fixed -->
                <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
                <div class="show-fixed pull-right">
                    <ul class="footer-list list-inline">
                        <li>
                            <p class="text-sm">SEO Proggres</p>
                            <div class="progress progress-sm progress-light-base">
                                <div style="width: 80%" class="progress-bar progress-bar-danger"></div>
                            </div>
                        </li>
                        <li>
                            <p class="text-sm">Online Tutorial</p>
                            <div class="progress progress-sm progress-light-base">
                                <div style="width: 80%" class="progress-bar progress-bar-primary"></div>
                            </div>
                        </li>
                        <li>
                            <button class="btn btn-sm btn-dark btn-active-success">Checkout</button>
                        </li>
                    </ul>
                </div>
                <!-- Visible when footer positions are static -->
                <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
                <div class="hide-fixed pull-right pad-rgt">Currently v2.2</div>
                <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
                <!-- Remove the class name "show-fixed" and "hide-fixed" to make the content always appears. -->
                <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
                <p class="pad-lft">Copyright &copy; 2020.Company name All rights reserved.</p>
            </footer>
            <!--===================================================-->
            <!-- END FOOTER -->
            <!-- SCROLL TOP BUTTON -->
            <!--===================================================-->
            <button id="scroll-top" class="btn"><i class="fa fa-chevron-up"></i></button>
            <!--===================================================-->
        </div>
<!--   模态框      --> 
  <div class="modal fade" id="modifyModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					修改时间
				</h4>
			</div>
			<div class="modal-body">
				<form action="" id="update-form"  >
					<!-- 隐藏域 -->
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">预约编号</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="appointmentTimeId" name="appointmentTimeId" readonly="readonly">
						</div>
						<label for="firstname" class="col-sm-2 control-label">预约时间</label>
						<div class="col-sm-10">
							<input type="datetime-local" class="form-control" id="appointmentTime" name="appointmentTime">
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<!-- 使用普通按钮,做点击事件 -->
							<button type="button" class="btn btn-default" id="update-btn">修改</button>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭
				</button>
			</div>
		</div>
	</div>
</div>
        
        <!--===================================================-->
        <!-- END OF CONTAINER -->
        <!--JAVASCRIPT-->
        <!--=================================================-->
        <!--jQuery [ REQUIRED ]-->
        <script src="js/jquery-2.1.1.min.js"></script>
        <!--BootstrapJS [ RECOMMENDED ]-->
        <script src="js/bootstrap.min.js"></script>
        <!--Fast Click [ OPTIONAL ]-->
        <script src="plugins/fast-click/fastclick.min.js"></script>
        <!--Jquery Nano Scroller js [ REQUIRED ]-->
        <script src="plugins/nanoscrollerjs/jquery.nanoscroller.min.js"></script>
        <!--Metismenu js [ REQUIRED ]-->
        <script src="plugins/metismenu/metismenu.min.js"></script>
        <!--Jasmine Admin [ RECOMMENDED ]-->
        <script src="js/scripts.js"></script>
        <!--Jquery Nano Scroller js [ REQUIRED ]-->
        <script src="plugins/nanoscrollerjs/jquery.nanoscroller.min.js"></script>
        <!--Metismenu js [ REQUIRED ]-->
        <script src="plugins/metismenu/metismenu.min.js"></script>
        <!--Switchery [ OPTIONAL ]-->
        <script src="plugins/switchery/switchery.min.js"></script>
        <!--Bootstrap Select [ OPTIONAL ]-->
        <script src="plugins/bootstrap-select/bootstrap-select.min.js"></script>
        <!--Fullscreen jQuery [ OPTIONAL ]-->
        <script src="plugins/screenfull/screenfull.js"></script>
        <!--Demo script [ DEMONSTRATION ]-->
        <script src="js/demo/form-layout.js"></script>
        <script src="js/jquery.min.js" type="text/javascript" ></script>
		<script src="js/jquery.promptu-menu.js" type="text/javascript"></script>
		<script type="text/javascript">
		$(function(){
			//获得登录医生姓名
			var doctor = "${sessionScope.doctor}";
			var doctorId = "${sessionScope.doctorId}";
				if(doctor==""){
					alert("请先到登录也登录");
					window.location.href = "doctor-login.jsp";
					return;
				}else{
					$("#realName").html(doctor);
				} 
			findAllAppointmentOperation();
				
			$("#publish").click(function(){
				var time =$("#demo-inline-inputmail").val();
				$.ajax({
					url:"${pageContext.request.contextPath}/AppointmentOperationServlet",
				    type:"get",
				    data:{
				    	op:"inserAppointmentOperationTime",
				    	time:time,
				    	doctorId:doctorId
				    },
				    success : function(result){
				    	findAllAppointmentOperation();
					},
				})
			})
			//删除预约时间
			$(document).on("click",".delete",function(){
				var appointmentTimeId = $(this).data("appointmenttimeid");
				$.ajax({
					async:true,
					type:"get",
					url:"${pageContext.request.contextPath}/AppointmentOperationServlet",
					data:{
						op:"deleteAppointmentTimeId",
						appointmentTimeId:appointmentTimeId
					},
					dataType:"json",
					success:function(){
						findAllAppointmentOperation();
					},
					error:function(){
						alert("异步请求失败！");
					},
				})
			})
			
			//修改预约时间
			$(document).on("click",".modify",function(){
				$("#appointmentTimeId").val($(this).data("appointmenttimeid"));
				$("#update-btn").prop("disabled","disabled");
			})
				
			$("#appointmentTime").change(function(){
				$("#update-btn").prop("disabled",false);
			})
			//模态框里的修改
			$(document).on("click","#update-btn",function(){
				var appointmentTime = $("#appointmentTime").val();
				var appointmenttimeId = $("#appointmentTimeId").val();
				$.ajax({
					async:true,
					type:"post",
					url:"${pageContext.request.contextPath}/AppointmentOperationServlet",
					data:{
						op:"getAppointmentTime",
						appointmentTime:appointmentTime,
						appointmenttimeId:appointmenttimeId
					},
					dataType:"json",
					success:function(result){
						console.log(result);
						$("#modifyModal").removeClass("in");
		    		    $("#modifyModal").attr("aria-hidden",true); 
		    		    $("#modifyModal").css("display","none");
		    		    // 关闭生成的阴影背景
		    		    $(".modal-backdrop").remove();
		    		    findAllAppointmentOperation();
					},
					error:function(){
		    			 alert("时间一致无需修改！");
		    		},
				})
			})
			
			// 下拉框改变事件
			 $(document).on("change","#select-pageSize",function(){
				// 调用发送请求方法,参数页码
				 findAllAppointmentOperation();		
		 	  });
			
			//查询所有预约时间
			function findAllAppointmentOperation(){
				var time = $("#select-pageSize").val();
				var content = "";
					$.ajax({
						async : true,
						url : "${pageContext.request.contextPath}/AppointmentOperationServlet",
						type : "get",
						dataType : "json",
						data : {
							op : "seachByAppointmentTime",
							time:time,
							doctorId:doctorId
						},
						success : function(result) {
							for(var i=0;i<result.length;i++){
								var AOTime=result[i];
								if(AOTime.user.userName==null){
						    	content += "<tr class=\"gradeA odd\">"+
											"<td>"+AOTime.appointmentTime+"</td>"+
											"<td>"+"未预约"+"</td>"+		
											"<td><a href=\"#\" data-toggle=\"modal\" data-target=\"#modifyModal\" id=\"doctorAO\" class=\"modify\" data-appointmenttime=\""+AOTime.appointmentTime+"\" data-appointmenttimeid=\""+AOTime.appointmentId+"\">修改时间</a>&nbsp;<a href=\"#\" class=\"delete\" data-appointmenttimeid=\""+AOTime.appointmentId+"\">删除</a></td>"+
							   			    "</tr>";
								}else{
									content += "<tr class=\"gradeA odd\">"+
									"<td>"+AOTime.appointmentTime+"</td>"+
									"<td>"+AOTime.user.userName+"</td>"+		
									"<td><a href=\"#\" data-toggle=\"modal\" data-target=\"#modifyModal\" id=\"doctorAO\" class=\"modify\" data-appointmenttime=\""+AOTime.appointmentTime+"\" data-appointmenttimeid=\""+AOTime.appointmentId+"\">修改时间</a>&nbsp;<a href=\"#\" class=\"delete\" data-appointmenttimeid=\""+AOTime.appointmentId+"\">删除</a></td>"+
					   			    "</tr>";	
								}
							}
						$("#tbody-appointmentlist").html(content);
					    }	
				  })
			
			}
		});
		</script>
    </body>
<<<<<<< HEAD
=======
    
>>>>>>> branch 'master' of https://gitee.com/ChenYouming01/witmed.git
</html>